package com.cake.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cake.dao.XxMemberRankMapper;
import com.cake.entity.XxMemberRank;
import com.cake.service.base.BaseService;
import com.cake.service.inter.IXxMemberRankService;

/**
 * 会员等级业务层
 * @author Administrator
 *
 */
@Service
@Transactional
public class XxMemberRankServiceImpl extends BaseService<XxMemberRank> implements IXxMemberRankService{

	@Autowired
	private XxMemberRankMapper xxMemberRankMapper;
	
	@Override
	public XxMemberRank selectMemberRankByGrede(Integer grede) {
		return xxMemberRankMapper.selectMemberRankByGrede(grede);
	}

	@Override
	public XxMemberRank selectMemberRankByName(String name) {
		return xxMemberRankMapper.selectMemberRankByName(name);
	}

}
